package com.demo.redis.enums;

/**
 * redis key约束
 */
public enum RedisKey {

    DEMO("test", String.class);

    private final String keyName;
    private final Class clazz;

    RedisKey(String keyName, Class clazz) {
        this.keyName = keyName;
        this.clazz = clazz;
    }

    public String getKeyName() {
        return keyName;
    }

    public Class getClazz() {
        return clazz;
    }
}
